package com.sboot.shiro.biz.sys.user.dao;

import java.util.List;
import java.util.Set;

import com.sboot.shiro.biz.sys.user.po.SysPermission;

public interface SysPermissionMapper {
    int deleteByPrimaryKey(String id);

    int insert(SysPermission record);

    int insertSelective(SysPermission record);

    SysPermission selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(SysPermission record);

    int updateByPrimaryKey(SysPermission record);
    
    Set<SysPermission> selectPermissionsByUserId(String userId);

	List<SysPermission> selectPermissionsByConditions(SysPermission sysPermission);
}